import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
 * Represents a raindrop on the mainscreen
 * 
 * @author Jasper Jans
 */
public class TitleScreenRainDrop extends Actor
{
    private final int dropSpeed = 10;
    
    public TitleScreenRainDrop()
    {
        GreenfootImage img = new GreenfootImage(2,7);
        img.setColor(Color.black);
        img.fill();
        setImage(img);     
        setRotation(340);
    }
    
    public void act() 
    {
        if(getY() + dropSpeed  >= 580)
        {
            getWorld().removeObject(this);
        }else{
            setLocation(getX() + 2, getY() + dropSpeed);
        }
    }    
}
